/**
 * DatePicker 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/date-picker/style';

export const datePickerThemeConfig: Partial<ComponentToken> = {
  presetsWidth: 120,
  presetsMaxWidth: 200,
  zIndexPopup: 1050,
  cellWidth: 36,
  cellHeight: 24,
  cellHoverBg: '#f5f5f5',
  cellActiveWithRangeBg: '#e6f4ff',
  cellHoverWithRangeBg: '#c8e6ff',
  cellBgDisabled: '#f5f5f5',
  cellRangeBorderColor: '#91caff',
  timeColumnWidth: 56,
  timeColumnHeight: 224,
  timeCellHeight: 28,
};

export const getDatePickerTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...datePickerThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as DatePickerComponentToken } from 'antd/es/date-picker/style';

